package com.daxt.model.dic;

public enum MethodType {

	GET("GET","GET"), 
	POST("POST","POST"),
	PUT("PUT","PUT"),
	DELETE("DELETE","DELETE");
	
	private String key;
	private String value;
	
	
	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	private MethodType(String key, String value) {
		this.key = key;
		this.value = value;
	}

	public static boolean hasKey(String key) {
		MethodType[] values = MethodType.values();
		for (MethodType type : values) {
			if(type.name().equals(key)) {
				return true;
			}
		}
		return false;
	}
}
